﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: StockOutEntity.cs
// 修改时间：2020-9-8 10:40:11
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：StockOut 的实体类.
	/// </summary>
	[Table("StockOut")]
	public partial class StockOutEntity
	{
		#region Properties
		private int? _id = 0;
		/// <summary>
		/// ID(主键)(自增长)
		/// </summary>
		[Column("ID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? ID
		{
			get {return _id;}
			set {_id = value;}
		}
		
		private System.String _email = string.Empty;
		/// <summary>
		/// Email地址
		/// </summary>
		[Column("Email",TypeName="nvarchar(64)")]
		[RegularExpression(RegexHelper.EmailPattern, ErrorMessage = "Email格式不对")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Email
		{
			get {return _email;}
			set {_email = value;}
		}
		
		private int? _userId = 0;
		/// <summary>
		/// 用户编号
		/// </summary>
		[Column("UserId",TypeName="int")]
		public int? UserId
		{
			get {return _userId;}
			set {_userId = value;}
		}
		
		private System.String _mobile = string.Empty;
		/// <summary>
		/// 手机
		/// </summary>
		[Column("Mobile",TypeName="nvarchar(64)")]
		[RegularExpression(RegexHelper.MobilePattern, ErrorMessage = "手机号格式不对")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Mobile
		{
			get {return _mobile;}
			set {_mobile = value;}
		}
		
		private int? _productId = 0;
		/// <summary>
		/// 产品编号
		/// </summary>
		[Column("ProductId",TypeName="int")]
		public int? ProductId
		{
			get {return _productId;}
			set {_productId = value;}
		}
		
		private int? _orderNum = 0;
		/// <summary>
		/// 订购数量
		/// </summary>
		[Column("OrderNum",TypeName="int")]
		public int? OrderNum
		{
			get {return _orderNum;}
			set {_orderNum = value;}
		}
		
		private DateTime? _inputTime = null;
		/// <summary>
		/// 登记时间
		/// </summary>
		[Column("InputTime",TypeName="datetime")]
		public DateTime? InputTime
		{
			get {return _inputTime;}
			set {_inputTime = value;}
		}
		
		private System.String _ip = string.Empty;
		/// <summary>
		/// IP地址
		/// </summary>
		[Column("IP",TypeName="nvarchar(64)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String IP
		{
			get {return _ip;}
			set {_ip = value;}
		}
		
		private int? _emailStatus = 0;
		/// <summary>
		/// 邮件发送状态
		/// </summary>
		[Column("EmailStatus",TypeName="int")]
		public int? EmailStatus
		{
			get {return _emailStatus;}
			set {_emailStatus = value;}
		}
		
		private int? _mobileStatus = 0;
		/// <summary>
		/// 短信发送状态
		/// </summary>
		[Column("MobileStatus",TypeName="int")]
		public int? MobileStatus
		{
			get {return _mobileStatus;}
			set {_mobileStatus = value;}
		}
		
		private System.String _property = string.Empty;
		/// <summary>
		/// 规格
		/// </summary>
		[Column("Property",TypeName="nvarchar(64)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Property
		{
			get {return _property;}
			set {_property = value;}
		}
		
		#endregion
	}
}
